package com.aysafety.iotdataplatformweb.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: iotDataPlatform
 * @description: 地音
 * @author: ChengQi
 * @create: 2019-02-13 09:26
 **/
@Mapper
@Repository
public interface GeosoundDao {

    /** 
    * @Description: 实时数据数量
    * @Param: [parram] 
    * @return: long 
    * @Author: ChengQi 
    * @Date: 2019/2/13 
    */ 
    long countByGeoSound(Map<String, Object> parram);

    /** 
    * @Description: 查询实时数据
    * @Param: [params] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/13 
    */ 
    public List<Map<String,Object>> queryRealTimeByGeoSound(Map<String, Object> params);


    /**
     * 查询设备表中的实时数据
     * @param params
     * @return
     */
    List<Map<String, Object>> queryRealTimeByDeviceId(Map<String, Object> params);


    /** 
    * @Description: 查询能量平均值、偏差值
    * @Param: [parram] 
    * @return: void 
    * @Author: ChengQi 
    * @Date: 2019/2/18 
    */ 
    List<Map<String, Object>> queryCalEmergoa(Map<String, Object> parram);

    /** 
    * @Description:能量平均值、偏差值数据数量
    * @Param: [parram]
    * @return: long 
    * @Author: ChengQi 
    * @Date: 2019/2/18 
    */ 
    long countCalEmergoa(Map<String, Object> parram);

    /** 
    * @Description: 每日能量偏差高值总数Ds、每日能量偏差高值总数Ds、日总、日均、日最高
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/20 
    */ 
    List<Map<String, Object>> queryDaily(Map<String, Object> parram);

    /**
     * @Description: 每日能量偏差高值总数Ds、每日能量偏差高值总数Ds、日总、日均、日最高数据数量
     * @Param: [parram]
     * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @Author: ChengQi
     * @Date: 2019/2/20
     */
    long countDaily(Map<String, Object> parram);

    /** 
    * @Description: 脉冲、脉冲因子、脉冲偏差值
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/20 
    */ 
    List<Map<String, Object>> queryCalPulse(Map<String, Object> parram);

    long countCalPulse(Map<String, Object> parram);

    /** 
    * @Description: 地音综合预警
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/28 
    */ 
    List<Map<String, Object>> dailyComprehensiveWarning(Map<String, Object> parram);

    List<Map<String,Object>> queryCalEmergoa1(Map<String, Object> parram);

    List<Map<String,Object>> queryCalPulse1(Map<String, Object> parram);


    /**
     * 查询脉冲、累积能量和能量均值
     * @param params
     * @return
     */
    List<Map<String, Object>> queryGeosoundPluseAndEnergy(Map<String, Object> params);


    List<Map<String, Object>> queryGeosoundWarningStudy(Map<String, Object> params);
}
